home *** CD-ROM | disk | FTP | other *** search
/ Business Heaven / Business Heaven.iso / finance / ppm41 / install.bat < prev    next >
DOS Batch File  |  1992-04-19  |  5KB  |  193 lines

  1. Echo Off
  2. REM **********************************************
  3. REM * File   : Install.bat
  4. REM * Author : Stephen Williams
  5. REM * Date   : Feb. 25, 1992
  6. REM * Revised:
  7. REM * Purpose: Installation OPPM Version 4.1
  8. REM **********************************************
  9. Echo Off
  10. Cls
  11. Echo                          OPPM Version 4.1 Installation
  12. if "%1" == ""    goto help
  13. if "%1" == "?"   goto help
  14. if "%1" == "A:"  goto help
  15. if "%1" == "a:"  goto help
  16. if "%1" == "B:"  goto help
  17. if "%1" == "b:"  goto help
  18. if "%1" == "A"   goto FLOP
  19. if "%1" == "a"   goto FLOP
  20. if "%1" == "B"   goto FLOP
  21. if "%1" == "b"   goto FLOP
  22.  
  23. for %%f in (C:,c:,D:,d:,E:,e:,F:,f:,G:,g:,H:,h:,Y:,y:)             do if %1.==%%f. goto Help
  24. for %%f in (I:,i:,J:,j:,K:,k:,L:,l:,M:,m:,N:,n:,O:,o:,P:,p:,Z:,z:) do if %1.==%%f. goto Help
  25. for %%f in (Q:,q:,R:,r:,S:,s:,T:,t:,U:,u:,V:,v:,W:,w:,X:,x:)       do if %1.==%%f. goto Help
  26.  
  27. REM **************************
  28. REM HARD DISK INSTALLATION
  29. REM **************************
  30. if not exist %1:\nul goto help
  31. CLS
  32. Echo                   OPPM Version 4.1 Hard Disk Installation
  33. Echo  
  34. Echo
  35. Echo                      Decompressing and Copying OPPM.EXE
  36. Echo
  37. OPPM41EX %1:\OPPM41
  38. Echo
  39. Echo               Decompressing and Copying Overlay and Help files
  40. Echo
  41. OPPM41OV %1:\OPPM41
  42. Echo
  43. Echo                    Decompressing and Copying Data Files
  44. Echo
  45. OPPM41DB %1:\OPPM41
  46. %1:
  47. CD %1:\OPPM41
  48. Echo
  49. Echo
  50. Echo               OPPM Successfully Installed on %1:\OPPM41
  51. Echo
  52. Echo                      type OPPM to run program
  53. goto End
  54.  
  55. REM **************************
  56. REM Help For OPPM Installation
  57. REM **************************
  58. :Help
  59. Cls
  60. Echo                        OPPM Version 4.1 Installation Help
  61. Echo  
  62. Echo  
  63. Echo  
  64. Echo  Syntax For HARD DISK Install is   Install C    (No Colon Should Be Typed)
  65. Echo                               or   Install D
  66. Echo                               or   Install E
  67. Echo                               etc.
  68. Echo
  69. Echo  Syntax For Floppy Disk Install is   Install B 3  (For 3 360k  disks)
  70. Echo                                 or   Install B 2  (For 2 720k+ disks)
  71. Echo  
  72. Echo  Note: Installation of the OPPM System requires
  73. Echo        approximately 600K bytes of free disk space
  74. Echo  
  75. Echo  
  76. goto end
  77.  
  78. REM ************************************
  79. REM FLOPPY DISK INSTALLATION
  80. REM ************************************
  81. :FLOP
  82. if "%2" == ""    goto help
  83. if "%2" == "?"   goto help
  84. if "%2" == "2"   goto FLOP2
  85. if "%2" == "3"   goto FLOP3
  86. GOTO HELP
  87.  
  88. REM ************************************
  89. REM FLOPPY DISK INSTALLATION 2
  90. REM ************************************
  91. :FLOP2
  92. CLS
  93. Echo                        OPPM Version 4.1 Installation
  94. Echo                   for 720K or higher capacity floppy disks
  95. Echo  
  96. Echo  
  97. Echo     NOTE: You should have 2 blank formatted floppy disks ready
  98. Echo           Label the disks "OPPM Program" and "OPPM Data"
  99. Echo  
  100. Echo  
  101. Echo  Insert the disk labeled "OPPM Program" in drive %1: (Press Ctrl-C to Cancel)
  102. Echo  
  103. Pause
  104. Echo
  105. Echo                      Decompressing and Copying OPPM.EXE
  106. Echo
  107. OPPM41EX %1:\
  108. Echo
  109. Echo               Decompressing and Copying Overlay and Help files
  110. Echo
  111. OPPM41OV %1:\
  112. Echo  
  113. Echo  
  114. Echo  Insert the disk labeled "OPPM Data" in drive %1: (Press Ctrl-C to Cancel)
  115. Echo  
  116. Pause
  117. Echo
  118. Echo                    Decompressing and Copying Data Files
  119. Echo
  120. OPPM41DB %1:\
  121. %1:
  122. CD a:
  123. Cls
  124. Echo
  125. Echo
  126. Echo                       OPPM Successfully Installed
  127. Echo
  128. Echo  To run program place "OPPM Program" in Drive A: and "OPPM Data"
  129. Echo  in drive B:  Type OPPM to start program.
  130. goto End
  131.  
  132. REM ************************************
  133. REM FLOPPY DISK INSTALLATION 3
  134. REM ************************************
  135. :FLOP3
  136. CLS
  137. Echo                        OPPM Version 4.1 Installation
  138. Echo                           for 360K floppy disks
  139. Echo  
  140. Echo  
  141. Echo     NOTE: You should have 3 blank formatted floppy disks ready
  142. Echo           Label the disks "OPPM Program 1", "OPPM Program 2"
  143. Echo           and "OPPM Data"
  144. Echo  
  145. Echo  
  146. Echo  Insert the disk labeled "OPPM Program 1" in drive %1: (Press Ctrl-C to Cancel)
  147. Echo  
  148. Pause
  149. Echo
  150. Echo                      Decompressing and Copying OPPM.EXE
  151. Echo
  152. OPPM41EX %1:\
  153. Echo  
  154. Echo  
  155. Echo  Insert the disk labeled "OPPM Program 2" in drive %1: (Press Ctrl-C to Cancel)
  156. Echo  
  157. Pause
  158. Echo
  159. Echo               Decompressing and Copying Overlay and Help files
  160. Echo
  161. OPPM41OV %1:\
  162. Echo  
  163. Echo  
  164. Echo  Insert the disk labeled "OPPM Data" in drive %1: (Press Ctrl-C to Cancel)
  165. Echo  
  166. Pause
  167. Echo
  168. Echo                    Decompressing and Copying Data Files
  169. Echo
  170. OPPM41DB %1:\
  171. %1:
  172. CD a:
  173. Echo
  174. Echo
  175. Echo                       OPPM Successfully Installed
  176. Echo
  177. Echo  To run program place "OPPM Program 1" in Drive A: and "OPPM Data"
  178. Echo  in drive B:  Type OPPM to start program.
  179. goto End
  180.  
  181. REM ************************
  182. REM End Of OPPM Installation
  183. REM ************************
  184. :end
  185. Echo  
  186. Echo  
  187. Echo *********************
  188. Echo OPPM Installation End
  189. Echo *********************
  190. :bad_end
  191. Echo  
  192. Echo  
  193.